import request from '@/utils/request'

// 获取组织部门列表
export function getDeptList() {
  return request.get('/company/department')
}

// 获取员工简单列表
export function getSimpleList() {
  return request.get('/sys/user/simple')
}
// 添加子部门
export function addDept(data) {
  return request.post('/company/department', data)
}
// 删除部门
export function delDept(id) {
  return request.delete(`/company/department/${id}`)
}
// 获取当前点击的信息
export function getDeptInfo(id) {
  return request.get(`/company/department/${id}`)
}
// 编辑的请求
export function deptEditAPI(data) {
  return request.put(`/company/department/${data.id}`, data)
}
